@echo off

set ROOTDIR=%~dp0

echo ----------------------------------------------------------
echo ELEN 7046 - Group 2 Project: Application Event Monitoring
echo ----------------------------------------------------------
echo THIS SCRIPT WILL BUILD ALL DEPENDENCIES FOR THE PROJECT.
echo THE BINARIES WILL THEN BE COPIED TO THE LIB DIRECTORY.
echo ----------------------------------------------------------
echo * The dependencies which will be compiled are as follows:
echo *
echo * Log Event Handlers
echo * MessageAPI.Net
echo * Instrumentator
echo * Performance Event Generator
echo ----------------------------------------------------------

@echo on


cd LoggedEventHandlers\LogAllEventsHandler
call logeventshandlers-build.and.copy.binaries.to.lib.bat

cd ..\..\
cd MessageAPI\MessageAPI.Net
call messageapi.net-build.and.copy.binaries.to.lib.bat

cd ..\..\



cd Instrumentator
call instrumentator-build.and.copy.binaries.to.lib.bat


cd ..\

cd lib\Tools\PerfEventGenerator\src\PerformanceEventGenerator\PerformanceEventGenerator

call performanceeventgenerator-build.and.copy.binaries.to.bin.bat

cd %ROOTDIR%

cd "DishDashboard\Dish Dash Site"

call build.and.package.dishdashboard.bat

cd %ROOTDIR%

cd "Sample Profiling Application"
call build.and.package.sampleapp.bat

cd %ROOTDIR%